package com.key.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

@ApiModel(value = "维修清单高级搜索参数")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RepairFormFindDTO {
    @ApiModelProperty(name = "currentPage",notes = "当前页码数",required = true)
    private Integer currentPage;

    @ApiModelProperty(name = "pageSize",notes = "每页显示记录数",required = true)
    private Integer pageSize;

    @ApiModelProperty(name = "rfState",notes = "办理状态(1:未处理，2:已处理)")
    private Integer rfState;

    @ApiModelProperty(name = "rfNo",notes = "维修单号")
    private String rfNo;

    @ApiModelProperty(name = "rfBusinessTime",notes = "业务日期")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    private Timestamp rfBusinessTime;

    @ApiModelProperty(name = "rfProcessor",notes = "处理人")
    private String rfProcessor;

    @ApiModelProperty(name = "rfReportRepair",notes = "报修人")
    private String rfReportRepair;

    @ApiModelProperty(name = "rfRepairSpend",notes = "维修花费")
    private BigDecimal rfRepairSpend;

}
